package com.cms.service.impl;

/*
@Service
public class FileServiceImpl implements FileService {

    @Autowired
    private FileMapper fileMapper;

    @Override
    public File getFileById(Integer id) {
        return fileMapper.selectById(id);
    }

    @Override
    public List<File> getAllFiles() {
        return fileMapper.selectAll();
    }

    @Override
    public boolean addFile(File file) {
        return fileMapper.insert(file) > 0;
    }

    @Override
    public boolean updateFile(File file) {
        return fileMapper.update(file) > 0;
    }

    @Override
    public boolean deleteFile(Integer id) {
        return fileMapper.deleteById(id) > 0;
    }

    @Override
    public List<File> getNotDeletedFiles() {
        return fileMapper.selectNotDeleted();
    }

    @Override
    public boolean softDeleteFile(Integer id) {
        return fileMapper.softDeleteById(id) > 0;
    }


}
*/
